package com.tkxs.tksbconfig.util;

import com.tkxs.tksbconfig.exception.UrlOrRequestMethodIsNullException;
import lombok.extern.slf4j.Slf4j;

/**
 * 算法类
 */
@Slf4j
public class AlgorithmUtil {

    public static String createUniqueKey(String url,String requestMethod){
        if (StringUtil.checkIsNull(url) || StringUtil.checkIsNull(requestMethod)){
            throw new UrlOrRequestMethodIsNullException();
        }

        String key = url.hashCode()+""+requestMethod.hashCode();

        return key;
    }
}
